targetActor._delegate.setSelected(true);
this.selectionIndex = index;
return true;
+ },
+
+ activateSelected: function() {
+ if (this.selectionIndex < 0)
+ return;
+ let children = this._container.get_children();
+ let targetActor = children[this.selectionIndex];
+ this.provider.activateResult(targetActor._delegate.app.get_id())
}
}
targetActor._delegate.setSelected(true);
this.selectionIndex = index;
return true;
+ },
+
+ activateSelected: function() {
+ let children = this.actor.get_children();
+ let targetActor = children[this.selectionIndex];
+ targetActor._delegate.activate();
}
}
return;
let meta = this._providerMeta[current];
let resultDisplay = meta.resultDisplay;
- let children = resultDisplay.actor.get_children();
- let targetActor = children[resultDisplay.getSelectionIndex()];
- targetActor._delegate.activate();
+ resultDisplay.activateSelected();
+ Main.overview.hide();
}
}
*/
selectIndex: function() {
throw new Error("not implemented");
+ },
+
+ /**
+ * Activate the currently selected search result.
+ */
+ activateSelected: function() {
+ throw new Error("not implemented");
}
};